import { combineReducers } from 'redux'
import { LOGIN } from './constants'

const user = (state = {}, action: any) => {
    const { type, data } = action
    switch (type) {
        case LOGIN:
            return data
        default:
            return state
    }
}

export default combineReducers({ user })
